Page({
  data: {
    list: [
      {
        id: 'get',
        name: '收信记录',
      }, {
        id: 'sent',
        name: '发信记录',
      }, {
        id: 'sentSMS',
        name: '发送消息',
      }],
  },
  kindToggle (e) {
    const id = e.currentTarget.id;
    console.log(id)
    switch (id) {
      case 'sent':
        wx.navigateTo({
          url: '../bdSent/index'
        })
        break;
      case 'get':
        wx.navigateTo({
          url: '../bdGet/index'
        })
        break;
      case 'sentSMS':
        wx.navigateTo({
          url: '../bdSentSMS/index'
        })
        break;
      default:
        break;
    }

  },
})
